package com.lyd.mybatis.demo.app.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户基础信息dto
 *
 */
@ToString
@Getter
@Setter
@ApiModel(description = "用户基础信息dto", value = "UserDTO")
public class UserDTO implements Serializable {
    /**
     * 用户主键
     */
    @ApiModelProperty(value = "用户主键", example = "1", required = true)
    private Long userId;
    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", example = "test", required = true)
    @NotNull(message = "用户登录名称不能为空")
    @Size(max = 32)
    private String userLoginName;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名", example = "test", required = true)
    @Size(max = 32)
    private String userName;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", example = "test")
    private String userPassword;

    /**
     * 性别;0-女；1-男
     */
    @ApiModelProperty(value = "性别;0-女；1-男", example = "0")
    private Integer userSex;

    /**
     * 用户状态;0-不启用；1-启用
     */
    @ApiModelProperty(value = "用户状态;FALSE-不启用；TRUE-启用")
    private Boolean isEnabled;
}

